package com.fms.gui.templateCreator.components.button;

import javax.swing.JFrame;

import junit.framework.TestCase;

import com.fms.TestUtils;

public class CloseFrameButtonTest extends TestCase
{
	public void testCloseFrameButtonTest()
	{
		CloseFrameButton button = new CloseFrameButton();
		
		JFrame frame = TestUtils.showInFrame(button);
		
		button.setOwnerFrame(frame);
	    
		button.doClick();
	    
	    assertTrue("Frame was not closed!", !frame.isVisible());

		
	}
}
